<template>
  <div class="profile">
    <Header title="设置"/>
    <div class="content">
      <div class="modify" @click="modifyPassword">
        修改密码
        <img src="../../assets/icons/back.png" alt="">
      </div>
      <div class="quit" @click="quit">安全退出</div>
    </div>
  </div>
</template>

<script>
import Header from '../../components/Header/Header'
export default {
  name: 'Profile',
  data () {
    return {}
  },
  created () {
  },
  components: {
    Header
  },
  methods: {
    // 修改密码
    modifyPassword () {
      this.$router.push('/profile/modifypassword')
    },
    // 退出功能实现
    quit () {
      this.$router.push('/login')
    }
  }
}
</script>

<style scoped lang="less">
.profile{
  background-color: #f5f5f6;
  height: 100%;
  width: 100%;
  .content{
    margin-top: 15px;
   .modify{
     position: relative;
     height: 45px;
     color: #2A2A2A;
     font-size: 17.5px;
     line-height: 45px;
     background-color: #fff;
     padding: 0 15px;
     img{
       position: absolute;
       top: 15px;
       right: 15px;
       content: '';
       display: block;
       width: 22px;
       height: 22px;
       transform: rotate(180deg);
     }
   }
  }
  .quit{
    margin-top: 10px;
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    color: #fb6d6a;
    font-size: 17.5px;
    background-color: #fff;
  }
}
</style>
